﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
        /*
        var value = "98.54635";
        var num = (value * 1) + 2;
        
        //document.write(num.toFixed(2))

        //0 null undefined NaN "" false
        var arr = new Array();
        arr[0] = 1;
        arr["Key"] = "abc";
        for (var i = 0; i < arr.length; i++) {
        //document.write(arr[i]);
        }

        for (var key in arr) {
            
        document.write(key + ":");
        document.write(arr[key] + "<br/>");
        }

        arr.push(0);
        var a = arr.pop();

        arr.unshift("123");
        var b = arr.shift();
        */

        function TestFun(num1, num2) {
            return num1 + num2;
        }

        var TestFun2 = function (num1, num2) {
            return num1 + num2;
        };

        var result = (function (num1, num2) {
            return num1 + num2;
        })(5, 6);

        function TestFun3() {
            return arguments[0] + arguments[1];
        }

        TestFun3(1, 2);

    </script>
</head>
<body>
</body>
</html>
